package cn.legend.travel.ask.dao.persist.repository;

import cn.legend.travel.ask.pojo.entity.Answer;
import cn.legend.travel.ask.pojo.entity.Ask;
import cn.legend.travel.ask.pojo.vo.AnswerStandardVO;
import cn.legend.travel.common.pojo.authentication.CurrentPrincipal;

public interface AnswerRepository {
    int addLikes(Long questionId);
    Answer getAnswer(Long questionId);
    int cancelLikes(Long questionId);
    int addView(Long questionId);
    int report(Long questionId);
    int addNewAnswer(Answer answer);
    AnswerStandardVO getBestAsk(Long questionId);
    AnswerStandardVO getBestAsk(Long questionId, CurrentPrincipal currentPrincipal);
}
